# -*- coding: utf-8 -*-
from selenium import webdriver
import sys,time
reload(sys)
sys.setdefaultencoding('utf-8')
		
def login(driver,url="http://www.hotent.org:10080/bpm3/entry.jsp",user="13452467537",passwd="13452467537"):
	u"登录测试-正确密码"
	time.sleep(1)
	driver.get(url)
	driver.find_element_by_name("username").clear()
	driver.find_element_by_name("username").send_keys(user)
	driver.find_element_by_name("password").clear()
	driver.find_element_by_name("password").send_keys(passwd)
	driver.find_element_by_xpath("//button[@type='submit']").click()
	time.sleep(2)
    
if __name__=='__main__':
	driver=webdriver.Firefox()
	login(driver)
	print 'test finish'